#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void init(int arr[],int sz)
{
	int a = 0;
	for (a = 0; a < sz; a++)
	{
		arr[a] = 0;
	}
}
void print(int arr[],int sz)
{
	int a = 0;
	for (a = 0; a < sz; a++)
	{
		printf("%d ", arr[a]);
	}
	printf("\n");
}
void reverse(int arr[], int sz)
{
	int left = 0;
	int right = sz - 1;
	for (; left <= right; left++, right--)
	{
		int temp = 0;
		temp = arr[left];
		arr[left] = arr[right];
		arr[right] = temp;
	}
}
int main()
{
	int arr[5] = { 0 ,1,2,3,4 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	reverse(arr, sz);
	print(arr, sz);
	init(arr, sz);
	print(arr, sz);
}